package com.shushan.pages.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: MaketingActivityBean
 * @Desciption: //营销activity数据bean
 * @author: zhangshihao
 * @date: 2018-05-23
 */
public class MaketingActivityBean extends NetBaseBean {

    public int id;
    public int cost_price;//原本价格
    public int favorable_price;//促销价格
    public int vip_time;//购买获得vip时间 单位：天
    public int stock;//剩余库存
    public int sell;//已经开通

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        id = jsonObject.optInt("id",0);
        cost_price = jsonObject.optInt("cost_price",0);
        favorable_price = jsonObject.optInt("favorable_price",0);
        vip_time = jsonObject.optInt("vip_time",0);
        stock = jsonObject.optInt("stock",0);
        sell = jsonObject.optInt("sell",0);
    }
}
